package com.example.apiproject.dao;

import com.example.apiproject.entity.Report;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReportDao {

    int insert(Integer userId, String articleId, String types, String content, LocalDateTime createTime);

    int update(Report report);

    List<Report> queryByStatus(Integer status);

    int delete(Integer id);

    List<Report> queryByUserId(int userId);

    List<Report> querAll();
}
